package model

import "gorm.io/gorm"

// 产品

type Order struct {
	gorm.Model
	Name   string `gorm:"type:varchar(30)"`
	Author string `gorm:"type:varchar(30)"`
}

// 分类类别

type Style struct {
	gorm.Model
	OrderId   int    `gorm:"type:int"`
	StyleName string `gorm:"type:varchar(30)"`
}

// 关联表

type OrderStyle struct {
	Name      string
	Author    string
	StyleName string
}
